//
//  RJOutView.h
//  AirQuality
//
//  Created by Po on 15/7/10.
//  Copyright (c) 2015年 Po. All rights reserved.
//

#import <UIKit/UIKit.h>


@protocol RJOutViewDelegate;

@interface RJOutView : UIView

@property (retain, nonatomic) UIView *      pandaView;
@property (retain, nonatomic) UIImageView * backImageView;
@property (retain, nonatomic) UILabel *     AQINumLabel;
@property (retain, nonatomic) UIView *      AQIDetailView;
@property (retain, nonatomic) UILabel *     AirRankLabel;
@property (retain, nonatomic) UIScrollView *detailScrollView;
@property (retain, nonatomic) UIView *      barView;
@property (retain, nonatomic) UILabel *     WarmPromptLabel;
@property (retain, nonatomic) UILabel *     timeLabel;
@property (retain, nonatomic) UIView *      navView;
@property (retain, nonatomic) UILabel *    positionLabel;
@property (retain, nonatomic) UIView *      lineView;
@property (retain, nonatomic) UIButton *    sectionAQIButton;
@property (retain, nonatomic) UILabel *     lineLabel;
@property (retain, nonatomic) UIView *      warmViewXib;
@property (retain, nonatomic) UILabel *     dateLabel;
@property (retain, nonatomic) UILabel *     cityLabel;
@property (retain, nonatomic) UILabel *     mainPollutionLabel; //主要污染物

//@property (retain, nonatomic) UILabel *     tempLabel;          //温度
@property (retain, nonatomic) UILabel *     weatherLabel;       //天气
@property (retain, nonatomic) UILabel *     windLabel;          //风速
//@property (retain, nonatomic) UIImageView * windDirectImageView;//风向
@property (retain, nonatomic) UIView * typeSection;                    //typeSection

@property (assign, nonatomic) id<RJOutViewDelegate> delegate;


/**设置方向*/
//- (void)setWindDirect:(DirectionType)directionType;

/**释放资源*/
- (void)freeData;
/**
 *   得到数据展示百度地图
 */
- (void)showMapView;
/**
 *  移除地图
 */
- (void)removeMap;
- (void)mapViewChangedWithCityName:(NSString *)cityName  cityCode:(NSString *)cityCode;
/**
 *  刷新或者重新选择城市
 */
- (void)typeSectionUpdata;

@end

@protocol RJOutViewDelegate <NSObject>

/**点击了刷新按钮*/
- (void)OutView:(RJOutView *)outView pressUpdateButton:(UIButton *)button;


/**点击了说明按钮*/
- (void)OutView:(RJOutView *)outView pressExplainButton:(UIButton *)button;

/**点击了浓度变化选择器*/
- (void)OutView:(RJOutView *)outView pressTypeButton:(UIButton *)button;

- (void)changeMapAndBottomWithType:(NSString *)type;

@end
